//模块的数据存储方法
import {Map} from "immutable";
import type from "./types/index"

const render = (
    state=Map({
        test:"helloWord"
    }),
    action) => {

    switch (action.type) {
        case type.SET_TEST:
            return state.set("test", action.data)

        default:
            return state
    }

}

export default render